package com.alex.statistics.pojo.result.timeSeriesAnalysis;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;


@Data
@Schema(description = "多项式拟合结果")
public class PolynomialFitResult {

    @Schema(description = "拟合得到的多项式系数", example = "[1.0, 1.5, 2.0]")
    private List<Double> coefficients;  // 返回的多项式系数，使用 List<Double> 类型

    @Schema(description = "返回的消息", example = "Polynomial fitting completed successfully.")
    private String message;  // 操作结果的消息

    @Schema(description = "预测y值的公式", example = "y = a0 + a1 * x + a2 * x^2")
    private String predictionFormula;  // 预测公式，便于前端展示给用户
}
